/**
 *
 */
package com.zhuoyue.elmt.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.eit.eitsite.common.persistence.Page;
import com.eit.eitsite.common.service.CrudService;
import com.zhuoyue.elmt.entity.GgSydw;
import com.zhuoyue.elmt.dao.GgSydwDao;

/**
 * 使用单位信息Service
 *
 * @version 2016-12-18
 */
@Service
@Transactional(readOnly = true)
public class GgSydwService extends CrudService<GgSydwDao, GgSydw> {

    public GgSydw get(String id) {
        return super.get(id);
    }

    public List<GgSydw> findList(GgSydw ggSydw) {
        return super.findList(ggSydw);
    }

    public Page<GgSydw> findPage(Page<GgSydw> page, GgSydw ggSydw) {
        return super.findPage(page, ggSydw);
    }

    @Transactional(readOnly = false)
    public void save(GgSydw ggSydw) {
        super.save(ggSydw);
    }

    @Transactional(readOnly = false)
    public void delete(GgSydw ggSydw) {
        super.delete(ggSydw);
    }

    public List<GgSydw> verifyWhetherAdd(GgSydw ggSydw) {
        return dao.verifyWhetherAdd(ggSydw);
    }

    @Transactional(readOnly = false)
    public void insert(GgSydw ggSydw) {
        dao.insert(ggSydw);
    }

    public GgSydw getByCode(GgSydw ggSydw) {
        return dao.getByCode(ggSydw);
    }

    public GgSydw getByMobile(GgSydw ggSydw) {
        return dao.getByMobile(ggSydw);
    }
}